using SqlSugar;

namespace CaipuGuanliXitong.Models;

[SugarTable("WeeklyMenu")]
public class WeeklyMenu
{
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }
    
    [SugarColumn(IsNullable = false)]
    public DateTime WeekStartDate { get; set; }
    
    [SugarColumn(IsNullable = false)]
    public int DayOfWeek { get; set; } // 1=Monday, 2=Tuesday, ..., 7=Sunday
    
    [SugarColumn(IsNullable = false)]
    public int MealType { get; set; } // 1=Breakfast, 2=Lunch, 3=Dinner
    
    [SugarColumn(IsNullable = true)]
    public int? Gender { get; set; } // 1=Male, 2=Female
    
    [SugarColumn(IsNullable = true)]
    public int? CookBookId { get; set; }
    
    [SugarColumn(Length = 100, IsNullable = true)]
    public string? CookBookName { get; set; }
    
    [SugarColumn(Length = 500, IsNullable = true)]
    public string? CookBookIds { get; set; } // 存储多个菜谱ID，用逗号分隔
    
    [SugarColumn(Length = 1000, IsNullable = true)]
    public string? CookBookNames { get; set; } // 存储多个菜谱名称，用逗号分隔
    
    public DateTime CreatedTime { get; set; }
    
    public DateTime UpdatedTime { get; set; }
    
    [SugarColumn(IsNullable = false, DefaultValue = "false")]
    public bool IsDeleted { get; set; }
}